package com.xcc.payment.controller;

import com.xcc.entities.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import java.util.UUID;

@RestController
public class PaymentController {

    @Autowired
    RestTemplate restTemplate;
    @Value("${server.port}")
    private String serverPort;


    @GetMapping("/payment/common")
    public String getCommon(){
        return "springcloud with zookeeper:"+serverPort+"\t"+ UUID.randomUUID().toString();
    }

}
